package com.hx.haowumall.haowumallproduct.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


//二级分类的Vo
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Catelog2Vo {
    private String catalog1Id;//一级父分类的ID
    private List<Catelog3Vo> catalog3List;//三级子分类的

    private String id;
    private String name;


    //三级分类的VO
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Catelog3Vo{
        private String catalog2Id;//父分类，二级父分类的ID
        private String id;
        private String name;

    }
}
